package cn.kgc.tangcco.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * @author 李昊哲
 * @Description
 * @create 2020/12/25 13:24
 */
@WebServlet(name = "TestServelet",urlPatterns = "/servlet.action")
public class TestServelet extends HttpServlet {
    private static final long serialVersionUID = 7791350678042173382L;

    @Override
    protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        String mobile = request.getParameter("mobile");
        PrintWriter writer = response.getWriter();
        writer.println(mobile);
        writer.flush();
        writer.close();
    }
}
